<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
  <head>
    <title> boss </title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
    <?php htmlhead(); ?>
  </head>
  
  <body>
    
    <div class="navTool menuborder">
      <div class="panel">
      <form method="post" action="?act=boss_edit" name="myform" id="myform" class="myform">
        <input type="hidden" name="id" value="<?php echo $data['boss_id'];?>" />
        <dl>
          <dt>对应副本</dt>
          <dd>
            <select name="instance_id">
              <?php
              foreach($instances as $_=>$v) {
                if($v['instance_id']==$data['instance_id']) {
                  echo('<option selected="true" value="'.$v['instance_id'].'">'.$v['instance_name'].'</option>');
                }
                else {
                  echo('<option value="'.$v['instance_id'].'">'.$v['instance_name'].'</option>');
                }
              }
              ?>
            </select>
          </dd>
        </dl>
        <dl>
          <dt>BOSS编号</dt>
          <dd><input type="text" name="boss_gameid" value="<?php echo $data['boss_gameid'];?>" /></dd>
        </dl>
        <dl>
          <dt>BOSS名称</dt>
          <dd><input type="text" name="boss_name" value="<?php echo $data['boss_name'];?>" /></dd>
        </dl>
        <dl>
          <dt>BOSS图片</dt>
          <dd><input type="text" name="boss_pic" value="<?php echo $data['boss_pic'];?>" /></dd>
        </dl>
        <dl>
          <dt>首杀时间</dt>
          <dd><input type="text" name="boss_flag" value="<?php if($data['boss_flag']) echo date('Y-m-d H:i:s',$data['boss_flag']);?>" /></dd>
        </dl>
        <dl>
          <dt>击杀次数</dt>
          <dd><input type="text" name="boss_num" value="<?php echo $data['boss_num'];?>" /></dd>
        </dl>
        <dl>
          <dt></dt>
          <dd><input type="submit" value="修改" class="btn" /></dd>
        </dl>
      </form>
      </div>
    </div>
    
    <script>
    <?php echo getTips(); ?>
    </script>
    
</body>
</html>